#include "stdafx.h"
#include "CppUnitTest.h"
#include <iostream>
using namespace std;
using namespace Microsoft::VisualStudio::CppUnitTestFramework;


namespace NativeTest_Question7
{
	void SetZero(int** a, int m, int n)
	{
		bool* row = new bool(m);
		bool* col = new bool(n);
		memset(row, m, sizeof(bool));
		memset(col, n, sizeof(bool));
		for (int i = 0; i < m; i++)
		{
			for (int j = 0; j < n; j++)
			{
				if(a[m,n] == 0)
				{
					row[m]=true; 
					col[n]= true;
				}
			}
		}


		for (int i = 0; i < m; i++)
		{
			for (int i = 0; i < n; i++)
			{
				if(row[n] || col[m])
					a[n,m] = 0;
			}
		}
	}
}
namespace NativeTest
{
	using namespace NativeTest_Question7;
	TEST_CLASS(Question7)
	{
	public:

		TEST_METHOD(Question7_TestMethod1)
		{
		}
	};
}	